home *** CD-ROM | disk | FTP | other *** search
/ SGI Cosmo Software 1997 May / SGI Cosmo Software 1997 May.iso / docs6.2 / relnotes / shared / mkindex.sh < prev   
Text File  |  1997-05-23  |  5KB  |  133 lines

  1. #!/sbin/sh -u
  2. #
  3. # Create an HTML index from the installed Freeware products based
  4. # on the release notes.
  5.  
  6. RELDIR=/usr/freeware/relnotes
  7. INDEX=$RELDIR/index.html
  8. LEGAL=shared/legal_notice.html # Ariel, we want this reference relative
  9.  
  10. # Remove the previous index if one exists
  11. rm -f $INDEX
  12.  
  13. # Create the header information
  14. echo "<HTML VERSION=\"2.0\">"                >> $INDEX
  15. echo "<HEAD>"                        >> $INDEX
  16. echo "<TITLE>Silicon Graphics Freeware</TITLE>"        >> $INDEX
  17. echo "</HEAD>"                        >> $INDEX
  18. echo "<BODY BGCOLOR=\"#FFFFFF\">"            >> $INDEX
  19. echo "<H1>Silicon Graphics Freeware</H1>"        >> $INDEX
  20. echo "<H2><A HREF="$LEGAL">Legal Notice</A></H2>"    >> $INDEX
  21.  
  22. echo "<H2>A note about the origins of Freeware.</H2>"    >> $INDEX
  23. echo "<BODY>"                        >> $INDEX
  24. echo "The software products being brought to"        >> $INDEX
  25. echo "you by Silicon Graphics have been authored"    >> $INDEX
  26. echo "by many generous individuals and organizations"    >> $INDEX
  27. echo "throughout the world.  It is through their"    >> $INDEX
  28. echo "efforts that these products exist."        >> $INDEX
  29. echo "</BODY>"                        >> $INDEX
  30. echo "<H2>Our contribution.</H2>"            >> $INDEX
  31. echo "<BODY>"                        >> $INDEX
  32. echo "Silicon Graphics has repackaged these software"    >> $INDEX
  33. echo "products so that they can be easily installed"    >> $INDEX
  34. echo "using either inst or SoftwareManager.  The"    >> $INDEX
  35. echo "software is installed into /usr/freeware to"    >> $INDEX
  36. echo "distinguish it from previous versions you may"    >> $INDEX
  37. echo "have installed directly from the authors."    >> $INDEX
  38. echo "</BODY>"                        >> $INDEX
  39. echo "<A NAME=\"SUPPORT\"</A>"                >> $INDEX
  40. echo "<H2>Support</H2>"                    >> $INDEX
  41. echo "<BODY>"                        >> $INDEX
  42. echo "The software in this package is considered"    >> $INDEX
  43. echo "unsupported by Silicon Graphics.  Neither the"    >> $INDEX
  44. echo "authors or Silicon Graphics are compelled to help"    >> $INDEX
  45. echo "resolve problems you may encounter in the"    >> $INDEX
  46. echo "installation, setup, or execution of this software."    >> $INDEX
  47. echo "To be more to the point, if you call us with an"    >> $INDEX
  48. echo "issue regarding products in the Freeware package,"    >> $INDEX
  49. echo "we'll have to gracefully terminate the call."    >> $INDEX
  50. echo "</BODY>"                        >> $INDEX
  51. echo "<H2>The Future</H2>"                >> $INDEX
  52. echo "<BODY>"                        >> $INDEX
  53. echo "For a variety of reasons the authors and/or Silicon"    >> $INDEX
  54. echo "Graphics may decide to discontinue one or more of these"    >> $INDEX
  55. echo "products.  It is more likely, however, that we will"    >> $INDEX
  56. echo "all try to bring many more products to you in future"    >> $INDEX
  57. echo "Freeware packages."                >> $INDEX
  58. echo "</BODY>"                        >> $INDEX
  59. echo "<H2>Release Notes</H2>"                >> $INDEX
  60. echo "<BODY>"                        >> $INDEX
  61. echo "Each product contains a release note with additional"    >> $INDEX
  62. echo "information about the product.  We encourage you to"    >> $INDEX
  63. echo "review each release note to benefit from as much"    >> $INDEX
  64. echo "knowledge as possible.  Each release note will also"    >> $INDEX
  65. echo "contain a WEB pointer to further information from Silicon" >> $INDEX
  66. echo "Graphics such as known bugs and workarounds."    >> $INDEX
  67. echo "</BODY>"                        >> $INDEX
  68.  
  69. echo "<H2>Changing Your Search Path</H2>"            >> $INDEX
  70. echo "<BODY>"                            >> $INDEX
  71. echo "By default the search path used by your system will not"    >> $INDEX
  72. echo "include the /usr/freeware directories."            >> $INDEX
  73. echo "We have provided a tool called"                >> $INDEX
  74. echo "<CODE>fixpath</CODE>"                    >> $INDEX
  75. echo "which can be used"                    >> $INDEX
  76. echo "to modify the files in your local environment controlling" >> $INDEX
  77. echo "these paths."                        >> $INDEX
  78. echo "To use the tool open a shell window and type"        >> $INDEX
  79. echo "<CODE>/usr/freeware/bin/fixpath</CODE>."            >> $INDEX
  80. echo "</BODY>"                            >> $INDEX
  81.  
  82. echo "<H2>Product Listing</H2>"                >> $INDEX
  83. echo "<UL>"                        >> $INDEX
  84.  
  85. # Parse each release note and add a entry.  The entry will consist
  86. # of the title as represented in the <TITLE> identifier and a link
  87. # to the actual release note
  88. for FILE in `ls $RELDIR | grep -i '\.html$' | grep -v index.html | sort -f`
  89. do
  90.     TITLE=`grep -i '<TITLE>' $RELDIR/$FILE | head -1 | \
  91.     cut -f2 -d'>' | cut -f1 -d'<'`
  92.     echo "<LI><A HREF=\"$FILE\">$TITLE</A>"        >> $INDEX
  93. done
  94.  
  95. # Create the footer information
  96. echo "</UL>"                        >> $INDEX
  97. echo "<BR>"                        >> $INDEX
  98. echo "<BR>"                        >> $INDEX
  99. echo "<BR>"                        >> $INDEX
  100. echo "<BR>"                        >> $INDEX
  101. echo "<BR>"                        >> $INDEX
  102. echo "<BR>"                        >> $INDEX
  103. echo "<BR>"                        >> $INDEX
  104. echo "<BR>"                        >> $INDEX
  105. echo "<BR>"                        >> $INDEX
  106. echo "<BR>"                        >> $INDEX
  107. echo "<BR>"                        >> $INDEX
  108. echo "<BR>"                        >> $INDEX
  109. echo "<BR>"                        >> $INDEX
  110. echo "<BR>"                        >> $INDEX
  111. echo "<BR>"                        >> $INDEX
  112. echo "<BR>"                        >> $INDEX
  113. echo "<BR>"                        >> $INDEX
  114. echo "<BR>"                        >> $INDEX
  115. echo "<BR>"                        >> $INDEX
  116. echo "<BR>"                        >> $INDEX
  117. echo "<BR>"                        >> $INDEX
  118. echo "<BR>"                        >> $INDEX
  119. echo "<BR>"                        >> $INDEX
  120. echo "<BR>"                        >> $INDEX
  121. echo "<BR>"                        >> $INDEX
  122. echo "<BR>"                        >> $INDEX
  123. echo "<BR>"                        >> $INDEX
  124. echo "<BR>"                        >> $INDEX
  125. echo "<BR>"                        >> $INDEX
  126. echo "<BR>"                        >> $INDEX
  127. echo "<BR>"                        >> $INDEX
  128. echo "<BR>"                        >> $INDEX
  129. echo "<BR>"                        >> $INDEX
  130. echo "</BODY>"                        >> $INDEX
  131. echo "</HTML>"                        >> $INDEX
  132.  
  133.